package com.yctan.base.utils.jsonUtils;


import com.alibaba.fastjson.JSON;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Author
 * @Date 2019/1/24 10:31
 * @Description json变化工具类
 */
public class JsonVary<T> {

    public String requestPostHeader(String url) throws IOException {
        org.apache.http.client.HttpClient client = new DefaultHttpClient();
        HttpPost httpPost = new HttpPost(url);
        httpPost.addHeader("token", "");
        InputStream inputStream = null;
        HttpResponse response = client.execute(httpPost);
        if (response.getStatusLine().equals(HttpStatus.SC_OK)) {
            inputStream = response.getEntity().getContent();
            byte[] bytes = new byte[1024];
            int len = 0;
            StringBuffer sb = new StringBuffer();
            while ((len = inputStream.read(bytes)) > 0) {
                sb.append(new String(bytes, 0, len));
            }
            return sb.toString();
        }
        if (inputStream != null) {
            try {
                inputStream.close();
            } catch (Exception e) {

            }
        }
        return null;
    }

    /**
     * 将json转换为Map对象
     *
     * @param json 获取的json 数据
     * @return java.util.Map<java.lang.String, java.lang.Object>
     */
    public static Map<String, Object> jsonToMap(String json) {
        Map mapTypes = JSON.parseObject(json);
        return mapTypes;
    }

    /**
     * 将Map转换为json数据
     *
     * @param map
     * @return org.activiti.engine.impl.util.json.JSONObject
     */
    public static com.alibaba.fastjson.JSONObject mapToJson(Map<String, Object> map) {
        com.alibaba.fastjson.JSONObject json = new com.alibaba.fastjson.JSONObject(map);
        return json;
    }

    /**
     * 将数据转换为对应的实体类
     *
     * @param json
     * @param tClass
     * @return
     */
    public T jsonStrToJava(String json, Class tClass) {
        //定义两种不同格式的字符串
        T t = null;
        if (json.substring(0, 1).equals("{")) {
            JSONObject jsonObject = JSONObject.fromObject(json);
            t = (T) JSONObject.toBean(jsonObject, tClass);

        }else{
        //2、使用JSONArray
        JSONArray jsonArray = JSONArray.fromObject(json);
        //获得jsonArray的第一个元素
        Object o = jsonArray.get(0);
        JSONObject jsonObject2 = JSONObject.fromObject(o);
        t = (T) JSONObject.toBean(jsonObject2, tClass);
        }
        return t;
    }

    /**
     * 将数据转换为对应的实体类 集合
     *
     * @param json
     * @param tClass
     * @return
     */
    public List<T> jsonStrToList(String json, Class tClass) {
        T t;
        List<T> list = new ArrayList<>();
        //2、使用JSONArray
        JSONArray jsonArray = JSONArray.fromObject(json);
        for (Object gitLabJobList : jsonArray) {
            JSONObject jsonObject2 = JSONObject.fromObject(gitLabJobList);
            t = (T) JSONObject.toBean(jsonObject2, tClass);
            list.add(t);
        }
        return list;
    }

    public static void main(String[] args) {
        StringBuffer json = new StringBuffer(
                "{\"code\":\"0\",\"data\":{\"totalCount\":103,\"template\":\"pcfood\",\"searchResult\":[{\"id\":191114335,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/feop/d91337976e8f9540e31caaff3eeffd3c57619.png\",\"title\":\"川魂冒菜（大湾望江阁店）\",\"address\":\"江北区五里店大湾桥北苑5号大湾望江阁农贸市场旁边\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.578757,\"longitude\":106.565253,\"showType\":\"food\",\"avgscore\":0.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"五里店/江北嘴\",\"tag\":[],\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":[],\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15178799836\",\"full\":false},{\"id\":614132005,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/feop/d91337976e8f9540e31caaff3eeffd3c57619.png\",\"title\":\"川魂酸菜米线私房菜\",\"address\":\"渝中区长江二路39-48号兰波·红城丽景\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.540083,\"longitude\":106.525701,\"showType\":\"food\",\"avgscore\":0.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"小吃快餐\",\"areaname\":\"大坪\",\"tag\":[],\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":[],\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"\",\"full\":false},{\"id\":193665196,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/feop/d91337976e8f9540e31caaff3eeffd3c57619.png\",\"title\":\"川魂帽牌货冒菜\",\"address\":\"江津区江津区老米市街百货街37号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.286161,\"longitude\":106.254347,\"showType\":\"food\",\"avgscore\":0.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"江津/重百\",\"tag\":[],\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":[],\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"\",\"full\":false},{\"id\":152668693,\"template\":\"pcfood\",\"imageUrl\":\"https://p0.meituan.net/mogu/ba0db22ce7d42163722426ba7538c510584013.jpg\",\"title\":\"川魂帽牌货冒菜\",\"address\":\"九龙坡区盘龙路皇庭珠宝城L3号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.506183,\"longitude\":106.494069,\"showType\":\"food\",\"avgscore\":0.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"巴国城\",\"tag\":[],\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":[],\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":45,\"city\":\"重庆\",\"phone\":\"\",\"full\":false},{\"id\":1971029059,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/feop/d91337976e8f9540e31caaff3eeffd3c57619.png\",\"title\":\"川魂帽牌货冒菜\",\"address\":\"渝北区金渝大道42号附147号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.650562,\"longitude\":106.562669,\"showType\":\"food\",\"avgscore\":0.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"汽博中心\",\"tag\":[],\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":[],\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"\",\"full\":false},{\"id\":1822200849,\"template\":\"pcfood\",\"imageUrl\":\"http://p1.meituan.net/wmproductwm/23e788062a2c8d6ecff3a656848f338f253722.jpg\",\"title\":\"川魂帽牌货冒菜\",\"address\":\"綦江区文龙街道大石路62-2号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.034605,\"longitude\":106.65523,\"showType\":\"food\",\"avgscore\":0.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"川菜\",\"areaname\":\"綦江\",\"tag\":[],\"cate\":[1,20632,20426,20557],\"recentScreen\":null,\"abstracts\":[],\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15823508913/13512370055\",\"full\":false},{\"id\":1934145788,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/mogu/b4454003e8221eaee62da84fb3f8b21c741898.jpg\",\"title\":\"川魂帽牌货冒菜\",\"address\":\"南岸区黄金公路盐都干锅王旁\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.499305,\"longitude\":106.594179,\"showType\":\"food\",\"avgscore\":0.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"川菜\",\"areaname\":\"黄桷垭/南山\",\"tag\":[],\"cate\":[1,20632,20426,20557],\"recentScreen\":null,\"abstracts\":[],\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"\",\"full\":false}],\"recommendResult\":[{\"id\":194404529,\"template\":\"pcfood\",\"imageUrl\":\"https://img.meituan.net/w.h/msmerchant/55188e303824c0d4af228d5a81b5d49037935.jpg\",\"title\":\"渝冒渝香老火锅冒菜（南坪店）\",\"address\":\"南岸区南坪街道南城大道32号A栋1-11（石灰市李记串串旁边）\",\"lowestprice\":15.0,\"avgprice\":20.0,\"latitude\":29.523429,\"longitude\":106.564941,\"showType\":\"food\",\"avgscore\":5.0,\"comments\":104,\"historyCouponCount\":393,\"backCateName\":\"冒菜\",\"areaname\":\"南岸区\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[\"http://p0.meituan.net/codeman/a1af36edb271ae6ec74e36cde05d1ac8851.png\"],\"iUrl\":null,\"deals\":[{\"id\":612078609,\"title\":\"单人特惠套餐，提供免费WiFi\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":15.0,\"value\":43.0,\"sales\":280.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":612081616,\"title\":\"特惠双人餐，提供免费WiFi\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":29.0,\"value\":52.0,\"sales\":66.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":625757419,\"title\":\"30元代金券1张，可叠加2张\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":19.9,\"value\":30.0,\"sales\":17.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":612082513,\"title\":\"3-4人什锦套餐\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":48.8,\"value\":81.0,\"sales\":14.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}}],\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"19112374100\",\"full\":false},{\"id\":1173128511,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/f8f04d33efd0ee5f5ed18e64dd563fdb374146.jpg\",\"title\":\"唯米干拌冒菜（冉家坝店）\",\"address\":\"渝北区龙溪街道松石支路112号附2-B\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.586147,\"longitude\":106.502688,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"龙脊广场\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"19912412797\",\"full\":false},{\"id\":952553077,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/f98e886ec2b7c818351012eabde98c96271159.jpg\",\"title\":\"渝冒渝香老火锅冒菜\",\"address\":\"渝中区七星岗中山一路6号附2号\",\"lowestprice\":0.0,\"avgprice\":18.0,\"latitude\":29.556218,\"longitude\":106.56659,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"七星岗\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"13368083214\",\"full\":false},{\"id\":840082763,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/f8f04d33efd0ee5f5ed18e64dd563fdb374146.jpg\",\"title\":\"干拌冒菜（江北店）\",\"address\":\"江北区鹞子丘路66号附35号（A馆k11旁一楼）\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.580872,\"longitude\":106.524759,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":1,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"大庙/红旗河沟\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15340405503\",\"full\":false},{\"id\":1463250518,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/f8f04d33efd0ee5f5ed18e64dd563fdb374146.jpg\",\"title\":\"唯米干拌冒菜（沙坪坝店）\",\"address\":\"沙坪坝区杨梨路19号附127号2楼17号\",\"lowestprice\":0.0,\"avgprice\":19.0,\"latitude\":29.56028,\"longitude\":106.445264,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"磁器口\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15340405503\",\"full\":false},{\"id\":193353703,\"template\":\"pcfood\",\"imageUrl\":\"https://img.meituan.net/w.h/msmerchant/d93067060bd4de66dacdded9d23ec92272648.jpg\",\"title\":\"渝冒渝香老火锅冒菜\",\"address\":\"江北区建北八支路龙湖新壹街C馆UG层\",\"lowestprice\":17.9,\"avgprice\":22.0,\"latitude\":29.58237,\"longitude\":106.52621,\"showType\":\"food\",\"avgscore\":5.0,\"comments\":152,\"historyCouponCount\":1129,\"backCateName\":\"冒菜\",\"areaname\":\"大庙/红旗河沟\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":[{\"business\":\"买单\",\"dealId\":-100,\"icon\":\"https://p1.meituan.net/codeman/a43001c065622a9a9a5ef24ba9190c901262.png\",\"type\":\"pay\",\"message\":\"买单8.5折\"}],\"titleTags\":[\"http://p0.meituan.net/codeman/a1af36edb271ae6ec74e36cde05d1ac8851.png\"],\"iUrl\":null,\"deals\":[{\"id\":644282020,\"title\":\"荤素什锦单人餐，包间免费\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":17.9,\"value\":43.0,\"sales\":36.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":68558316,\"title\":\"50元代金券1张，可叠加\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":45.0,\"value\":50.0,\"sales\":9.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}}],\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"13883420126\",\"full\":false},{\"id\":192802906,\"template\":\"pcfood\",\"imageUrl\":\"http://p1.meituan.net/w.h/waimaipoi/ae9ba638629e66d9d29b772831ba1d1f43008.jpg\",\"title\":\"干拌冒菜\",\"address\":\"南岸区亚太路1号附472号\",\"lowestprice\":0.0,\"avgprice\":23.0,\"latitude\":29.532709,\"longitude\":106.558849,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":1,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"南坪\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"18883503891\",\"full\":false},{\"id\":910949822,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/bc8d4b14e6e12de3bd18d352ee765843418238.jpg\",\"title\":\"火冒鲜涨冒菜麻辣烫\",\"address\":\"江北区鲤鱼池路鲤鱼池二村20号\",\"lowestprice\":0.0,\"avgprice\":24.0,\"latitude\":29.57458,\"longitude\":106.5452,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":1,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"建新东路/大兴村\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15922710381\",\"full\":false},{\"id\":1955031391,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/b542a8fd6e4fdb88f88eb55826260e97248948.jpg\",\"title\":\"渝冒渝香老火锅冒菜（沙坪坝店）\",\"address\":\"沙坪坝区石碾盘88号附37号2-1\",\"lowestprice\":0.0,\"avgprice\":18.0,\"latitude\":29.551451,\"longitude\":106.461499,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":3,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"小龙坎\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"13883039177\",\"full\":false},{\"id\":1938711835,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/7c1ea28e4f5977375205563b110112af590904.jpg\",\"title\":\"冒菜西施·火锅冒菜（回兴店）\",\"address\":\"渝北区回兴街道兴科大道金福花园B幢1-24\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.684412,\"longitude\":106.596151,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":2,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"回兴\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"18523529253\",\"full\":false},{\"id\":194677536,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/df1aaed515ecaf45764accdf86cddb60315848.jpg\",\"title\":\"恰似辣年火锅冒菜（时代天街店）\",\"address\":\"渝中区时代天街18号2-17#\",\"lowestprice\":0.0,\"avgprice\":16.0,\"latitude\":29.53625,\"longitude\":106.509811,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":1,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"石桥铺\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"13102358417\",\"full\":false},{\"id\":194960795,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/w.h/bbia/daa0f1699b5199f4495e1e300c09e35665877.jpg\",\"title\":\"恰似辣年火锅冒菜（两路店）\",\"address\":\"渝北区双龙湖街道龙祥街86号\",\"lowestprice\":14.9,\"avgprice\":17.0,\"latitude\":29.713613,\"longitude\":106.626205,\"showType\":\"food\",\"avgscore\":4.2,\"comments\":8,\"historyCouponCount\":34,\"backCateName\":\"冒菜\",\"areaname\":\"两路\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":[{\"id\":632995868,\"title\":\"多种畅销荤菜+多种畅销素菜+米饭1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":14.9,\"value\":29.8,\"sales\":188.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":632996682,\"title\":\"麻辣牛肉+多种畅销荤菜+多种畅销素菜+米饭1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":19.9,\"value\":39.8,\"sales\":12.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":642146901,\"title\":\"20元代金券1张，可叠加\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":15.0,\"value\":20.0,\"sales\":13.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":632999475,\"title\":\"麻辣牛肉1份、老肉片1份、多种畅销荤菜+多种畅销素菜+米饭2份1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":39.8,\"value\":79.8,\"sales\":8.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":637079814,\"title\":\"20元代金券1张，可叠加\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":16.0,\"value\":20.0,\"sales\":0.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}}],\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15215024303\",\"full\":false},{\"id\":1833587733,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/391fa2e3671b0074283a91f1aa460ea91729236.jpg\",\"title\":\"渝冒渝香老火锅冒菜（大学城店）\",\"address\":\"沙坪坝区大学城西路29号附160号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.602754,\"longitude\":106.292841,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":1,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"大学城\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"13996182280\",\"full\":false},{\"id\":1055830875,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/612cf507711ecf84e5516b5bf2068947213946.jpg\",\"title\":\"宽焱辣卤火锅冒菜\",\"address\":\"江北区红石路1号附42号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.582304,\"longitude\":106.526591,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"大庙/红旗河沟\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"\",\"full\":false},{\"id\":194475891,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/f08e2dc4b9b143dfb5378e61054cf745562895.jpg\",\"title\":\"唯米干拌冒菜（渝中店）\",\"address\":\"渝中区兴隆街99号附4号\",\"lowestprice\":0.0,\"avgprice\":20.0,\"latitude\":29.553752,\"longitude\":106.563064,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":1,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"七星岗\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15340405503\",\"full\":false},{\"id\":193553709,\"template\":\"pcfood\",\"imageUrl\":\"http://p1.meituan.net/w.h/bbia/3baf7f499992b0ccb6be95a0fb0d3c2074198.jpg\",\"title\":\"三顾冒菜（石桥铺店）\",\"address\":\"九龙坡区石杨路石桥铺雨林商都\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.529107,\"longitude\":106.482151,\"showType\":\"food\",\"avgscore\":4.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"开发区\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[\"http://p0.meituan.net/codeman/a1af36edb271ae6ec74e36cde05d1ac8851.png\"],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"17754917677/17347707378\",\"full\":false},{\"id\":195917390,\"template\":\"pcfood\",\"imageUrl\":\"http://p1.meituan.net/wmproduct/a417215b5ac3e48b20040360b9009382271192.jpg\",\"title\":\"渝冒渝香老火锅冒菜（冉家坝店）\",\"address\":\"渝北区龙山街道余松一支路9号龙湖紫都城2-9幢负1-102（猫掌柜烧烤铺旁边）\",\"lowestprice\":0.0,\"avgprice\":17.0,\"latitude\":29.584514,\"longitude\":106.496787,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":2,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"紫都城/沃尔玛\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":45,\"city\":\"重庆\",\"phone\":\"18983638338\",\"full\":false},{\"id\":192039022,\"template\":\"pcfood\",\"imageUrl\":\"http://p1.meituan.net/wmproduct/a417215b5ac3e48b20040360b9009382271192.jpg\",\"title\":\"渝冒渝香老火锅冒菜（杨家坪店）\",\"address\":\"九龙坡区石坪桥正街9号附71号\",\"lowestprice\":0.0,\"avgprice\":16.0,\"latitude\":29.515183,\"longitude\":106.508286,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":3,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"石桥铺\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15123292741\",\"full\":false},{\"id\":196016937,\"template\":\"pcfood\",\"imageUrl\":\"http://p1.meituan.net/wmproduct/a417215b5ac3e48b20040360b9009382271192.jpg\",\"title\":\"渝冒渝香老火锅冒菜（时代天街店）\",\"address\":\"渝中区时代天街16号2-26号\",\"lowestprice\":0.0,\"avgprice\":22.0,\"latitude\":29.533223,\"longitude\":106.5123,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":2,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"石桥铺\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"17843817677\",\"full\":false},{\"id\":1566477012,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/6799bcbd37c4e83be25f3e07503263ac202115.jpg\",\"title\":\"渝味记忆老火锅冒菜（南坪店）\",\"address\":\"南岸区南坪街道珊瑚路2号5、6栋2层5号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.523764,\"longitude\":106.568515,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"万达广场\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"13452939755\",\"full\":false},{\"id\":1211734330,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/xianfu/b147b06d120ef98c9c1548e2d2af9886292451.jpg\",\"title\":\"唯米干拌冒菜（大坪店）\",\"address\":\"渝中区龙湖时代汇9号楼0227\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.536089,\"longitude\":106.510907,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"石桥铺\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"19112088754\",\"full\":false},{\"id\":165771430,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/w.h/waimaipoi/125954fab5d8db2c5e68fb028fd759fc43842.jpg\",\"title\":\"鼎记火锅冒菜（茶园店）\",\"address\":\"南岸区同景路5号S1幢2-59号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.496335,\"longitude\":106.651755,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"茶园新区\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"023-62986796/15730868898\",\"full\":false},{\"id\":1164499760,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/w.h/bbia/daa0f1699b5199f4495e1e300c09e35665877.jpg\",\"title\":\"恰似辣年火锅冒菜（汽博店）\",\"address\":\"渝北区经济技术开发区北区金童路69号\",\"lowestprice\":14.9,\"avgprice\":20.0,\"latitude\":29.637303,\"longitude\":106.563723,\"showType\":\"food\",\"avgscore\":3.0,\"comments\":2,\"historyCouponCount\":1,\"backCateName\":\"冒菜\",\"areaname\":\"汽博中心\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":[{\"id\":642146901,\"title\":\"20元代金券1张，可叠加\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":15.0,\"value\":20.0,\"sales\":13.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":637079814,\"title\":\"20元代金券1张，可叠加\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":16.0,\"value\":20.0,\"sales\":0.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":645866319,\"title\":\"多种畅销荤菜+多种畅销素菜+米饭1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":14.9,\"value\":29.8,\"sales\":0.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":645868594,\"title\":\"麻辣牛肉+多种畅销荤菜+多种畅销素菜+米饭1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":19.9,\"value\":39.8,\"sales\":1.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":645868624,\"title\":\"麻辣牛肉1份、老肉片1份、多种畅销荤菜+多种畅销素菜+米饭2份1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":39.9,\"value\":79.8,\"sales\":1.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}}],\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":45,\"city\":\"重庆\",\"phone\":\"13650587508\",\"full\":false},{\"id\":547677624,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/w.h/bbia/daa0f1699b5199f4495e1e300c09e35665877.jpg\",\"title\":\"恰似辣年火锅冒菜（李家沱店）\",\"address\":\"巴南区花溪村3号附27号\",\"lowestprice\":14.9,\"avgprice\":17.0,\"latitude\":29.456815,\"longitude\":106.539232,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":1,\"historyCouponCount\":1,\"backCateName\":\"冒菜\",\"areaname\":\"红光\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":[{\"id\":632995868,\"title\":\"多种畅销荤菜+多种畅销素菜+米饭1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":14.9,\"value\":29.8,\"sales\":188.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":632996682,\"title\":\"麻辣牛肉+多种畅销荤菜+多种畅销素菜+米饭1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":19.9,\"value\":39.8,\"sales\":12.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":642146901,\"title\":\"20元代金券1张，可叠加\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":15.0,\"value\":20.0,\"sales\":13.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":632999475,\"title\":\"麻辣牛肉1份、老肉片1份、多种畅销荤菜+多种畅销素菜+米饭2份1份\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":39.8,\"value\":79.8,\"sales\":8.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}},{\"id\":637079814,\"title\":\"20元代金券1张，可叠加\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":16.0,\"value\":20.0,\"sales\":0.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}}],\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"18725810054\",\"full\":false},{\"id\":772142914,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/3211bae25e1290412ad39e45a99a10421152643.jpg\",\"title\":\"恰似辣年（解放碑店）\",\"address\":\"渝中区七星岗街道枇杷山正街47号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.553056,\"longitude\":106.560384,\"showType\":\"food\",\"avgscore\":3.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"七星岗\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"19923810172\",\"full\":false},{\"id\":1717132469,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/7c1ea28e4f5977375205563b110112af590904.jpg\",\"title\":\"川味冒菜西施（江北机场店）\",\"address\":\"渝北区双龙湖街道胜利路李家湾4号1幢2号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.71645,\"longitude\":106.628061,\"showType\":\"food\",\"avgscore\":3.0,\"comments\":1,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"两路\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"15683383651\",\"full\":false},{\"id\":1681602240,\"template\":\"pcfood\",\"imageUrl\":\"https://img.meituan.net/w.h/msmerchant/c4eec52070c74b0c02a28710939db64960603.jpg\",\"title\":\"椒灶卤冒菜（冉家坝店）\",\"address\":\"渝北区渝北区龙小街道龙小二路123号圣地阳光2幢1/2-2\",\"lowestprice\":24.0,\"avgprice\":23.0,\"latitude\":29.597131,\"longitude\":106.494858,\"showType\":\"food\",\"avgscore\":5.0,\"comments\":32,\"historyCouponCount\":129,\"backCateName\":\"冒菜\",\"areaname\":\"冉家坝\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[\"http://p0.meituan.net/codeman/a1af36edb271ae6ec74e36cde05d1ac8851.png\"],\"iUrl\":null,\"deals\":[{\"id\":647294562,\"title\":\"30元代金券1张，可叠加\",\"subtitleA\":null,\"subtitleB\":null,\"subtitleC\":null,\"price\":24.0,\"value\":30.0,\"sales\":5.0,\"iUrl\":\"\",\"stid\":null,\"trace\":null,\"tag\":{\"promotion\":[]}}],\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"023-68188826\",\"full\":false},{\"id\":1081766000,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/d613e7e211f52e945d48e90d44beafc51049059.jpg\",\"title\":\"恰似辣年火锅冒菜（巴国城店）\",\"address\":\"大渡口区诗情路2号附49号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.497564,\"longitude\":106.469447,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":2,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"巴国城\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":45,\"city\":\"重庆\",\"phone\":\"17384787471\",\"full\":false},{\"id\":547884401,\"template\":\"pcfood\",\"imageUrl\":\"http://p1.meituan.net/wmproduct/a417215b5ac3e48b20040360b9009382271192.jpg\",\"title\":\"渝冒渝香老火锅冒菜（鲁能星城店）\",\"address\":\"渝北区渝鲁大道987号\",\"lowestprice\":0.0,\"avgprice\":33.0,\"latitude\":29.6019,\"longitude\":106.56015,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":1,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"龙头寺\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":45,\"city\":\"重庆\",\"phone\":\"17323967410/18502347410\",\"full\":false},{\"id\":948869940,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/d613e7e211f52e945d48e90d44beafc51049059.jpg\",\"title\":\"恰似辣年火锅冒菜（大竹林店）\",\"address\":\"渝北区金开大道296号附91号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.631331,\"longitude\":106.469987,\"showType\":\"food\",\"avgscore\":3.0,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"渝北区\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"13635458506\",\"full\":false},{\"id\":1116286834,\"template\":\"pcfood\",\"imageUrl\":\"http://p0.meituan.net/wmproduct/d613e7e211f52e945d48e90d44beafc51049059.jpg\",\"title\":\"恰似辣年火锅冒菜（弹子石店）\",\"address\":\"南岸区弹子石街道弹子石新街13号\",\"lowestprice\":0.0,\"avgprice\":0.0,\"latitude\":29.58067,\"longitude\":106.59126,\"showType\":\"food\",\"avgscore\":3.5,\"comments\":0,\"historyCouponCount\":0,\"backCateName\":\"冒菜\",\"areaname\":\"弹子石\",\"tag\":null,\"cate\":[1,20426,20557],\"recentScreen\":null,\"abstracts\":null,\"dangleAbstracts\":null,\"titleTags\":[],\"iUrl\":null,\"deals\":null,\"posdescr\":null,\"ct_poi\":null,\"trace\":null,\"landmarkDistance\":null,\"hasAds\":false,\"adsClickUrl\":\"\",\"adsShowUrl\":\"\",\"distance\":\"\",\"cityId\":0,\"city\":\"\",\"phone\":\"17323602259\",\"full\":false}],\"cardExtension\":{},\"extraInfoCinema\":null,\"serverInfo\":{\"traceId\":\"5e4a51af-5e1c-439b-9cbe-c3e68d2650b4\",\"searchId\":\"8792367961425225108\",\"globalId\":\"7253602224607862493\",\"queryId\":\"\"},\"stid\":null}}"
        );

        com.alibaba.fastjson.JSONArray jsonArray = com.alibaba.fastjson.JSONObject.parseObject(json.toString()).getJSONObject("data").getJSONArray("searchResult");
        for (Object object : jsonArray){
            com.alibaba.fastjson.JSONObject jsonObject = (com.alibaba.fastjson.JSONObject)object;
            System.out.println(jsonObject.get("title")+":"+jsonObject.get("latitude")+","+jsonObject.get("longitude"));
        }
    }
}
